package com.foreknow.dao;

import com.foreknow.entity.Department;

import java.util.List;

public interface DepartmentMapper {


    int insert(Department record);

    /**
     * 添加用户信息
     * @param record
     * @return
     */
    int insertSelective(Department record);

    Department selectByPrimaryKey(Integer id);

    /**
     * 修改用户信息
     * @param record
     * @return
     */
    int updateByPrimaryKeySelective(Department record);

    int updateByPrimaryKey(Department record);

    /**
     * 查询所有DeptName字段
     * @return
     */
    List<Department> queryDeptNameArr();

    /**
     * 根据id删除科室信息
     * @param id
     * @return
     */
    int deleteByPrimaryKey(Integer id);

    /**
     * 根据条件查询科室信息
     * @param department
     * @return
     */
    List<Department> selectDep(Department department);
}